class RegisterApi:
    def get_verify_code01(self, session):
        session.get('http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&type=user_reg&r=0.4459692913599851')

    def register(self, session, data):
        url = "http://hmshop-test.itheima.net/Home/User/reg.html"
        header = {"Content-Type": "application/x-www-form-urlencoded"}
        resp = session.post(url=url, headers=header, data=data)
        return resp
